<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>emp-toolkit: /Users/wangxiao/git/emp-toolkit/emp-ot/ot/iterated.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo-full-doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">emp-toolkit
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('iterated_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">iterated.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="iterated_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef OT_ITERATED_H__</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define OT_ITERATED_H__</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="emp-ot_8h.html">emp-ot.h</a>&quot;</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> OTExtension&gt;</div><div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="class_o_t_iterated.html">    9</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_o_t_iterated.html">OTIterated</a>: <span class="keyword">public</span> <a class="code" href="class_o_t.html">OT</a>&lt;OTIterated&lt;OTExtension&gt;&gt; { <span class="keyword">public</span>:</div><div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="class_o_t_iterated.html#a7e32a3bc1f01d28c54a0d5ee92600e7a">   10</a></span>&#160;    OTExtension *<a class="code" href="class_o_t_iterated.html#a7e32a3bc1f01d28c54a0d5ee92600e7a">seed_ot</a>;</div><div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="class_o_t_iterated.html#a91662e552480d19cab7b03a4f797b267">   11</a></span>&#160;    OTExtension *<a class="code" href="class_o_t_iterated.html#a91662e552480d19cab7b03a4f797b267">ot</a>;</div><div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="class_o_t_iterated.html#a46c916966ff7506f992119e5187bb8f1">   12</a></span>&#160;    <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> * <a class="code" href="class_o_t_iterated.html#a6deb901c1ff8b65a3fea3d587b9fe126">k0</a> = <span class="keyword">nullptr</span>, *<a class="code" href="class_o_t_iterated.html#a46c916966ff7506f992119e5187bb8f1">k1</a> = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="class_o_t_iterated.html#a56319acc31f67dae479975d937de59e8">   13</a></span>&#160;    <span class="keywordtype">bool</span> * <a class="code" href="class_o_t_iterated.html#a56319acc31f67dae479975d937de59e8">sel</a> = <span class="keyword">nullptr</span>, <a class="code" href="class_o_t_iterated.html#ac3eeeddc775ef4d8512f2f5ad47b39d4">is_sender</a>;</div><div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="class_o_t_iterated.html#a68effdf12e897e3d6f31b8aba3bcc482">   14</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_o_t_iterated.html#a45cc73ade29aac990b863fdb3d5375fd">buffer_size</a>, <a class="code" href="class_o_t_iterated.html#a68effdf12e897e3d6f31b8aba3bcc482">size</a> = 0;</div><div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="class_o_t_iterated.html#aeb9aeafa074b3f102e5d69fe2226d4f5">   15</a></span>&#160;    <a class="code" href="class_p_r_g.html">PRG</a> <a class="code" href="class_o_t_iterated.html#aeb9aeafa074b3f102e5d69fe2226d4f5">prg</a>;</div><div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="class_o_t_iterated.html#a39028a6e1e6fec076692cb7de0bb2a08">   16</a></span>&#160;    <a class="code" href="class_o_t_iterated.html#a39028a6e1e6fec076692cb7de0bb2a08">OTIterated</a>(<a class="code" href="class_net_i_o.html">NetIO</a>* <a class="code" href="class_o_t.html#a66a5cf62a5b5707e2af40719b2005340">io</a>, <span class="keywordtype">bool</span> <a class="code" href="class_o_t_iterated.html#ac3eeeddc775ef4d8512f2f5ad47b39d4">is_sender</a>, <span class="keywordtype">int</span> buffer_size = 1&lt;&lt;10) : <a class="code" href="class_o_t.html">OT</a>&lt;<a class="code" href="class_o_t_iterated.html">OTIterated</a>&lt;OTExtension&gt;&gt;(io) {</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;        seed_ot = <span class="keyword">new</span> OTExtension(io);</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;        ot = <span class="keyword">new</span> OTExtension(io);</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;        this-&gt;buffer_size = <a class="code" href="class_o_t_iterated.html#a45cc73ade29aac990b863fdb3d5375fd">buffer_size</a>;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;        this-&gt;is_sender = <a class="code" href="class_o_t_iterated.html#ac3eeeddc775ef4d8512f2f5ad47b39d4">is_sender</a>;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;        k0 = <span class="keyword">new</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>[<a class="code" href="class_o_t_iterated.html#a45cc73ade29aac990b863fdb3d5375fd">buffer_size</a>];</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;        <a class="code" href="class_o_t_iterated.html#a46c916966ff7506f992119e5187bb8f1">k1</a> = <span class="keyword">new</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>[<a class="code" href="class_o_t_iterated.html#a45cc73ade29aac990b863fdb3d5375fd">buffer_size</a>];</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;        sel = <span class="keyword">new</span> <span class="keywordtype">bool</span>[<a class="code" href="class_o_t_iterated.html#a45cc73ade29aac990b863fdb3d5375fd">buffer_size</a>];</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;        <a class="code" href="class_o_t_iterated.html#a79c894f939420c45b31af7004966099a">fill</a>();</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    }</div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="class_o_t_iterated.html#af40598fcc95835a5b2232cbe16a08587">   26</a></span>&#160;    <a class="code" href="class_o_t_iterated.html#af40598fcc95835a5b2232cbe16a08587">~OTIterated</a>() {</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;        <span class="keyword">delete</span>[] <a class="code" href="class_o_t_iterated.html#a6deb901c1ff8b65a3fea3d587b9fe126">k0</a>;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;        <span class="keyword">delete</span>[] <a class="code" href="class_o_t_iterated.html#a46c916966ff7506f992119e5187bb8f1">k1</a>;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;        <span class="keyword">delete</span>[] <a class="code" href="class_o_t_iterated.html#a56319acc31f67dae479975d937de59e8">sel</a>;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;        <span class="keyword">delete</span> <a class="code" href="class_o_t_iterated.html#a7e32a3bc1f01d28c54a0d5ee92600e7a">seed_ot</a>;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        <span class="keyword">delete</span> <a class="code" href="class_o_t_iterated.html#a91662e552480d19cab7b03a4f797b267">ot</a>;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    }</div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="class_o_t_iterated.html#a79c894f939420c45b31af7004966099a">   33</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_o_t_iterated.html#a79c894f939420c45b31af7004966099a">fill</a>() {</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        <span class="keywordflow">if</span>(<a class="code" href="class_o_t_iterated.html#ac3eeeddc775ef4d8512f2f5ad47b39d4">is_sender</a>) {</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;            <span class="keywordflow">if</span>( size != 0) {</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;                ot-&gt;setup_send(k0, sel);</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;            }</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;            ot-&gt;send_rot(k0, <a class="code" href="class_o_t_iterated.html#a46c916966ff7506f992119e5187bb8f1">k1</a>, seed_ot-&gt;l);</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;            seed_ot-&gt;setup_recv(k0, <a class="code" href="class_o_t_iterated.html#a46c916966ff7506f992119e5187bb8f1">k1</a>);</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;            prg.<a class="code" href="class_p_r_g.html#a364a86de7a055f92198d2d8762f0288c">random_bool</a>(sel, buffer_size);</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;            seed_ot-&gt;recv_rot(k0, sel, buffer_size);</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;            <span class="keywordflow">if</span>( size != 0)</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;                ot-&gt;setup_recv(k0 ,<a class="code" href="class_o_t_iterated.html#a46c916966ff7506f992119e5187bb8f1">k1</a>);</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;            prg.<a class="code" href="class_p_r_g.html#a364a86de7a055f92198d2d8762f0288c">random_bool</a>(sel, seed_ot-&gt;l);</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;            ot-&gt;recv_rot(k0, sel, seed_ot-&gt;l);</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;            seed_ot-&gt;setup_send(k0, sel);</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;            seed_ot-&gt;send_rot(k0, <a class="code" href="class_o_t_iterated.html#a46c916966ff7506f992119e5187bb8f1">k1</a>, buffer_size);</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        }</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;        size = ot-&gt;l;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    }</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="class_o_t_iterated.html#a3a878221a3e0538a39484791bae5a1e1">   52</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_o_t_iterated.html#a3a878221a3e0538a39484791bae5a1e1">send_impl</a>(<span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>* data0, <span class="keyword">const</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>* data1, <span class="keywordtype">int</span> length) {</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        <span class="keywordflow">if</span>(size + ot-&gt;l &gt; buffer_size)</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;            <a class="code" href="class_o_t_iterated.html#a79c894f939420c45b31af7004966099a">fill</a>();</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        ot-&gt;setup_send(k0+size, sel+size);</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        ot-&gt;send(data0, data1, length);</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        size+=ot-&gt;l;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    }</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="class_o_t_iterated.html#aa1ad9e7797fc902b0aaba04ef2db69a9">   59</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_o_t_iterated.html#aa1ad9e7797fc902b0aaba04ef2db69a9">recv_impl</a>(<a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>* data, <span class="keyword">const</span> <span class="keywordtype">bool</span>* b, <span class="keywordtype">int</span> length) {</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        <span class="keywordflow">if</span>(size + ot-&gt;l &gt; buffer_size)</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;            <a class="code" href="class_o_t_iterated.html#a79c894f939420c45b31af7004966099a">fill</a>();</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        ot-&gt;setup_recv(k0+size, <a class="code" href="class_o_t_iterated.html#a46c916966ff7506f992119e5187bb8f1">k1</a>+size);</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        ot-&gt;recv(data, b, length);</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        size+=ot-&gt;l;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    }</div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="class_o_t_iterated.html#a76d9f6ff16d829b0387a95de4b7063c2">   66</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_o_t_iterated.html#a76d9f6ff16d829b0387a95de4b7063c2">send_cot</a>(<a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> * data0, <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> delta, <span class="keywordtype">int</span> length) {</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        <span class="keywordflow">if</span>(size + ot-&gt;l &gt; buffer_size)</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;            <a class="code" href="class_o_t_iterated.html#a79c894f939420c45b31af7004966099a">fill</a>();</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        ot-&gt;setup_send(k0+size, sel+size);</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        ot-&gt;send_cot(data0, delta, length);</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        size+=ot-&gt;l;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    }</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="class_o_t_iterated.html#a5b769b2f334b3311d0aa356752ddf8bc">   74</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_o_t_iterated.html#a5b769b2f334b3311d0aa356752ddf8bc">recv_cot</a>(<a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>* data, <span class="keyword">const</span> <span class="keywordtype">bool</span>* b, <span class="keywordtype">int</span> length) {</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        <span class="keywordflow">if</span>(size + ot-&gt;l &gt; buffer_size)</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;            <a class="code" href="class_o_t_iterated.html#a79c894f939420c45b31af7004966099a">fill</a>();</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        ot-&gt;setup_recv(k0+size, <a class="code" href="class_o_t_iterated.html#a46c916966ff7506f992119e5187bb8f1">k1</a>+size);</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        ot-&gt;recv_cot(data, b, length);</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        size+=ot-&gt;l;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    }</div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="class_o_t_iterated.html#adf9aa54e0b22337cb87b9b7d744be56a">   81</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_o_t_iterated.html#adf9aa54e0b22337cb87b9b7d744be56a">send_rot</a>(<a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> * data0, <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> * data1, <span class="keywordtype">int</span> length) {</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        <span class="keywordflow">if</span>(size + ot-&gt;l &gt; buffer_size)</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;            <a class="code" href="class_o_t_iterated.html#a79c894f939420c45b31af7004966099a">fill</a>();</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        ot-&gt;setup_send(k0+size, sel+size);</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        ot-&gt;send_rot(data0, data1, length);</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;        size+=ot-&gt;l;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    }</div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="class_o_t_iterated.html#a08f2e578d76cd4b824421eb78aeacd26">   88</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_o_t_iterated.html#a08f2e578d76cd4b824421eb78aeacd26">recv_rot</a>(<a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>* data, <span class="keyword">const</span> <span class="keywordtype">bool</span>* b, <span class="keywordtype">int</span> length) {</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        <span class="keywordflow">if</span>(size + ot-&gt;l &gt; buffer_size)</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;            <a class="code" href="class_o_t_iterated.html#a79c894f939420c45b31af7004966099a">fill</a>();</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        ot-&gt;setup_recv(k0+size, <a class="code" href="class_o_t_iterated.html#a46c916966ff7506f992119e5187bb8f1">k1</a>+size);</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        ot-&gt;recv_rot(data, b, length);</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        size+=ot-&gt;l;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    }</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;};</div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="group___o_t.html#gab125e533d88ec5cc8c2a2537112f36ba">   96</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="class_o_t_iterated.html">OTIterated&lt;SHOTExtension&gt;</a> <a class="code" href="group___o_t.html#gab125e533d88ec5cc8c2a2537112f36ba">SHOTIterated</a>;</div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="group___o_t.html#gacc46790c671188444537f7ac9dd3ac94">   97</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="class_o_t_iterated.html">OTIterated&lt;MOTExtension&gt;</a> <a class="code" href="group___o_t.html#gacc46790c671188444537f7ac9dd3ac94">MOTIterated</a>;</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="preprocessor">#endif// OT_ITERATED_H__</span></div><div class="ttc" id="class_o_t_iterated_html_aa1ad9e7797fc902b0aaba04ef2db69a9"><div class="ttname"><a href="class_o_t_iterated.html#aa1ad9e7797fc902b0aaba04ef2db69a9">OTIterated::recv_impl</a></div><div class="ttdeci">void recv_impl(block *data, const bool *b, int length)</div><div class="ttdef"><b>Definition:</b> iterated.h:59</div></div>
<div class="ttc" id="class_p_r_g_html_a364a86de7a055f92198d2d8762f0288c"><div class="ttname"><a href="class_p_r_g.html#a364a86de7a055f92198d2d8762f0288c">PRG::random_bool</a></div><div class="ttdeci">void random_bool(bool *data, int length)</div><div class="ttdef"><b>Definition:</b> prg.h:57</div></div>
<div class="ttc" id="class_o_t_iterated_html_a46c916966ff7506f992119e5187bb8f1"><div class="ttname"><a href="class_o_t_iterated.html#a46c916966ff7506f992119e5187bb8f1">OTIterated::k1</a></div><div class="ttdeci">block * k1</div><div class="ttdef"><b>Definition:</b> iterated.h:12</div></div>
<div class="ttc" id="class_o_t_iterated_html_a79c894f939420c45b31af7004966099a"><div class="ttname"><a href="class_o_t_iterated.html#a79c894f939420c45b31af7004966099a">OTIterated::fill</a></div><div class="ttdeci">void fill()</div><div class="ttdef"><b>Definition:</b> iterated.h:33</div></div>
<div class="ttc" id="garble_2block_8h_html_a65abbf31b0a30290189cdb5059b5f785"><div class="ttname"><a href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a></div><div class="ttdeci">__m128i block</div><div class="ttdef"><b>Definition:</b> block.h:8</div></div>
<div class="ttc" id="group___o_t_html_gacc46790c671188444537f7ac9dd3ac94"><div class="ttname"><a href="group___o_t.html#gacc46790c671188444537f7ac9dd3ac94">MOTIterated</a></div><div class="ttdeci">OTIterated&lt; MOTExtension &gt; MOTIterated</div><div class="ttdef"><b>Definition:</b> iterated.h:97</div></div>
<div class="ttc" id="class_o_t_iterated_html_a76d9f6ff16d829b0387a95de4b7063c2"><div class="ttname"><a href="class_o_t_iterated.html#a76d9f6ff16d829b0387a95de4b7063c2">OTIterated::send_cot</a></div><div class="ttdeci">void send_cot(block *data0, block delta, int length)</div><div class="ttdef"><b>Definition:</b> iterated.h:66</div></div>
<div class="ttc" id="class_o_t_iterated_html_a45cc73ade29aac990b863fdb3d5375fd"><div class="ttname"><a href="class_o_t_iterated.html#a45cc73ade29aac990b863fdb3d5375fd">OTIterated::buffer_size</a></div><div class="ttdeci">int buffer_size</div><div class="ttdef"><b>Definition:</b> iterated.h:14</div></div>
<div class="ttc" id="class_net_i_o_html"><div class="ttname"><a href="class_net_i_o.html">NetIO</a></div><div class="ttdef"><b>Definition:</b> net_io_channel.h:22</div></div>
<div class="ttc" id="class_o_t_iterated_html_a39028a6e1e6fec076692cb7de0bb2a08"><div class="ttname"><a href="class_o_t_iterated.html#a39028a6e1e6fec076692cb7de0bb2a08">OTIterated::OTIterated</a></div><div class="ttdeci">OTIterated(NetIO *io, bool is_sender, int buffer_size=1&lt;&lt; 10)</div><div class="ttdef"><b>Definition:</b> iterated.h:16</div></div>
<div class="ttc" id="class_o_t_iterated_html_af40598fcc95835a5b2232cbe16a08587"><div class="ttname"><a href="class_o_t_iterated.html#af40598fcc95835a5b2232cbe16a08587">OTIterated::~OTIterated</a></div><div class="ttdeci">~OTIterated()</div><div class="ttdef"><b>Definition:</b> iterated.h:26</div></div>
<div class="ttc" id="emp-ot_8h_html"><div class="ttname"><a href="emp-ot_8h.html">emp-ot.h</a></div></div>
<div class="ttc" id="group___o_t_html_gab125e533d88ec5cc8c2a2537112f36ba"><div class="ttname"><a href="group___o_t.html#gab125e533d88ec5cc8c2a2537112f36ba">SHOTIterated</a></div><div class="ttdeci">OTIterated&lt; SHOTExtension &gt; SHOTIterated</div><div class="ttdef"><b>Definition:</b> iterated.h:96</div></div>
<div class="ttc" id="class_o_t_iterated_html_a7e32a3bc1f01d28c54a0d5ee92600e7a"><div class="ttname"><a href="class_o_t_iterated.html#a7e32a3bc1f01d28c54a0d5ee92600e7a">OTIterated::seed_ot</a></div><div class="ttdeci">OTExtension * seed_ot</div><div class="ttdef"><b>Definition:</b> iterated.h:10</div></div>
<div class="ttc" id="class_o_t_iterated_html_a56319acc31f67dae479975d937de59e8"><div class="ttname"><a href="class_o_t_iterated.html#a56319acc31f67dae479975d937de59e8">OTIterated::sel</a></div><div class="ttdeci">bool * sel</div><div class="ttdef"><b>Definition:</b> iterated.h:13</div></div>
<div class="ttc" id="class_o_t_iterated_html_a08f2e578d76cd4b824421eb78aeacd26"><div class="ttname"><a href="class_o_t_iterated.html#a08f2e578d76cd4b824421eb78aeacd26">OTIterated::recv_rot</a></div><div class="ttdeci">void recv_rot(block *data, const bool *b, int length)</div><div class="ttdef"><b>Definition:</b> iterated.h:88</div></div>
<div class="ttc" id="class_o_t_iterated_html_a3a878221a3e0538a39484791bae5a1e1"><div class="ttname"><a href="class_o_t_iterated.html#a3a878221a3e0538a39484791bae5a1e1">OTIterated::send_impl</a></div><div class="ttdeci">void send_impl(const block *data0, const block *data1, int length)</div><div class="ttdef"><b>Definition:</b> iterated.h:52</div></div>
<div class="ttc" id="class_o_t_html_a66a5cf62a5b5707e2af40719b2005340"><div class="ttname"><a href="class_o_t.html#a66a5cf62a5b5707e2af40719b2005340">OT&lt; OTIterated&lt; OTExtension &gt; &gt;::io</a></div><div class="ttdeci">NetIO * io</div><div class="ttdef"><b>Definition:</b> ot.h:9</div></div>
<div class="ttc" id="class_p_r_g_html"><div class="ttname"><a href="class_p_r_g.html">PRG</a></div><div class="ttdef"><b>Definition:</b> prg.h:16</div></div>
<div class="ttc" id="class_o_t_iterated_html_aeb9aeafa074b3f102e5d69fe2226d4f5"><div class="ttname"><a href="class_o_t_iterated.html#aeb9aeafa074b3f102e5d69fe2226d4f5">OTIterated::prg</a></div><div class="ttdeci">PRG prg</div><div class="ttdef"><b>Definition:</b> iterated.h:15</div></div>
<div class="ttc" id="class_o_t_iterated_html_ac3eeeddc775ef4d8512f2f5ad47b39d4"><div class="ttname"><a href="class_o_t_iterated.html#ac3eeeddc775ef4d8512f2f5ad47b39d4">OTIterated::is_sender</a></div><div class="ttdeci">bool is_sender</div><div class="ttdef"><b>Definition:</b> iterated.h:13</div></div>
<div class="ttc" id="class_o_t_iterated_html_adf9aa54e0b22337cb87b9b7d744be56a"><div class="ttname"><a href="class_o_t_iterated.html#adf9aa54e0b22337cb87b9b7d744be56a">OTIterated::send_rot</a></div><div class="ttdeci">void send_rot(block *data0, block *data1, int length)</div><div class="ttdef"><b>Definition:</b> iterated.h:81</div></div>
<div class="ttc" id="class_o_t_iterated_html_a91662e552480d19cab7b03a4f797b267"><div class="ttname"><a href="class_o_t_iterated.html#a91662e552480d19cab7b03a4f797b267">OTIterated::ot</a></div><div class="ttdeci">OTExtension * ot</div><div class="ttdef"><b>Definition:</b> iterated.h:11</div></div>
<div class="ttc" id="class_o_t_iterated_html_a6deb901c1ff8b65a3fea3d587b9fe126"><div class="ttname"><a href="class_o_t_iterated.html#a6deb901c1ff8b65a3fea3d587b9fe126">OTIterated::k0</a></div><div class="ttdeci">block * k0</div><div class="ttdef"><b>Definition:</b> iterated.h:12</div></div>
<div class="ttc" id="class_o_t_iterated_html_a68effdf12e897e3d6f31b8aba3bcc482"><div class="ttname"><a href="class_o_t_iterated.html#a68effdf12e897e3d6f31b8aba3bcc482">OTIterated::size</a></div><div class="ttdeci">int size</div><div class="ttdef"><b>Definition:</b> iterated.h:14</div></div>
<div class="ttc" id="class_o_t_html"><div class="ttname"><a href="class_o_t.html">OT</a></div><div class="ttdef"><b>Definition:</b> ot.h:6</div></div>
<div class="ttc" id="class_o_t_iterated_html"><div class="ttname"><a href="class_o_t_iterated.html">OTIterated</a></div><div class="ttdef"><b>Definition:</b> iterated.h:9</div></div>
<div class="ttc" id="class_o_t_iterated_html_a5b769b2f334b3311d0aa356752ddf8bc"><div class="ttname"><a href="class_o_t_iterated.html#a5b769b2f334b3311d0aa356752ddf8bc">OTIterated::recv_cot</a></div><div class="ttdeci">void recv_cot(block *data, const bool *b, int length)</div><div class="ttdef"><b>Definition:</b> iterated.h:74</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_ac88365fe90bb4e9eec48638542d51c5.html">emp-ot</a></li><li class="navelem"><a class="el" href="dir_56b62f0454746633164d0b7ddf9c4cfd.html">ot</a></li><li class="navelem"><a class="el" href="iterated_8h.html">iterated.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
  </ul>
</div>
</body>
</html>
